Latest Questions

Syntax error when parsing variable from XML within an SQL stored Procedure

So, I'm trying to run a stored procedure within another stored procedure and parse out some XML data into a variable. It is giving me a syntax error on the fir

Eslint to warn when there is a missing import statement?

I'm using nodejs with regular javascript, and using eslint. My eslint is setup to catch many errors in my code - however it isn't catching when I forgot to impo

How to use java native method System.loadLibrary() in xamarin android?

I need to load two libraries before starting my activity. I can use this method through the native java language in android studio, here is my java code that is

How to specify number of workers in sagemaker?

sagemaker API let's you create model ( see sample below) , are there any paramters that we can pass , as environment variables that can specify number of worker

jps does not show hmaster but <no information available>

I configured HBase today and I configured it correctly at first. However, when I ran HBase use the code 'start-all.sh' again, I could not see 'Hmaster' anywhere

Molecular MC simulation is not equilibrating

Suppose, a polymer has N monomers in its chain. I want to simulate its movement using the bead-spring model. However, there was no periodic boundary condition a

insert into NedB boolean value without quotation marks

I have a NedB database which I'm trying to insert some new data into that I retrieve from HTML form, this is my function to insert new. addEntry(name,desc,ingre

Flutter can't find file downloaded to the flutter_assets folder

I download a file from AWS after runtime, and I checked to confirm that the file gets saved correctly in: /data/user/0/APPNAME/app_flutter/flutter_assets/FILENA

Testing a React context with jest and consume it in the test file

I'm now trying to test a simple React class context that is used to sets a currency to the global state. However, I didn't know how to to consume the context in

Backingfield is null in EF Core 3.1 , Lazy loading enabled

I am using Lazy Loading in EF core 3.1 and when i try to get the navigation data,it doesn't load. public class Template { private readonly List<Spec>

How to make an autoclicker in python?

I am trying to make a simple autoclicker, I want it so that if i press a command key, ('a' for example), it will hold down the down arrow for 10 seconds, then t

Get all dates within a date range

If I have a given date range (DateFrom and DateTo), how can I get all the dates within the date range?

Uncaught Error: Objects are not valid as a React child (found: object with keys {message})

I have ReactJS application which receives data from SpringBoot API. I am successfully able to receive the data from SpringBoot as seen through console.log(). B

Apply formula on a column conditional to another column

import requests from geopy.geocoders import Nominatim import streamlit as st import numpy as np import pandas as pd import random, string print('ville :') code

On Java 17 WindowBuilder was not able to show the GUI. .wbp-component.xml description for component javax.swing.JFrame

I'm using Eclipse 2021-9 version and already have Window builder installed. this error happens when I click the designer tab. WindowBuilder was not able to sho

How to find/calculate the shaded area of this shape in python?

I'm trying to write a python program to calculate the shaded area of the circle in this picture: [![enter image description here][1]][1] Here is the input and o

gcloud compute config-ssh results in permission denied

I'm trying to ssh into a gce instance: C:\Users\Kevin>gcloud compute config-ssh You should now be able to use ssh/scp with your instances. For example, try r

How to specify series data in heatmap chart with gridIndex using eCharts

In my below sample only the first chart (for 'Cars') is populated. How should I create the input dataset (the 'data' array) so that all three charts (Cars, Boar

dbIds from the Forge Viewer and the Model Derivative API are different

I'm working on creating a forge viewer-based web system linking with my client's BIM360 environment. For the model data extraction part, I refered to the exampl

I can't get the code to say reached, anything I try to assign to the array position returns [] instead of the current state (index)

let level = 1 const buttonColors = ['red', 'blue', 'green', 'yellow'] const gamePattern = [] const x = gamePattern.slice(gamePattern.length - 1, gamePattern.

How to set random colour in a discord.js embed

I have a discord bot and it works perfectly. My objective is that when I send the >help message, the bot chooses a random colour for the embed and sends it.

Invalid parameter number in Laravel Raw Query

I have the following query in mysql select count(*) as aggregate from `promotions` where `supplier_id` = 1 and '2022-03-27' <= promotions.to AND '2022-04-27'

Initialize a Merkle tree of 8 with blank leaves in solidity

I am trying to initialise an empty merkle tree in the constructor my solidity contract I have a merkle tree of 8 leaves, so that means that the flattened out fo

Ionic cordova build aandroid --release aab "Web page not available"

I created a simple ionic app, works good if i build with --packageType=apk and install it to the phone or run with --livereload but when i build it locally with

FastAPI: How to use POST data as variable to trigger another script?

I have written an API on FastAPI with filename api.py: from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Username(BaseMode

InDesign does not apply the paragraph styles correctly even when mapped to the same working paragraph styles

Was wondering if anyone knew why this may be happening? I've set up an InDesign document importing from Word with the correct formatting but then when I import

Can I Append Custom Highlights to an Existing Syntax Without Forking It?

I'm looking to add a few custom syntax highlights to an existing one, but I don't want to maintain a copy of the base one I'm using in its entirety. Is there a

How do you pass data dynamically is a Swift array?

Im creating a tinder like swipe app and I need a new CardData(name: "", age: "") to be created depending on how many profiles I pass through from my database. T

Questions about CTS/VTS and CDD for android 10

We are developing Head Unit for Automotive and using Android 10. We won't integrate Google Play Services on this. I concern that we have to run and pass CTS/VTS